﻿@model Microsoft.AspNetCore.Diagnostics.IExceptionHandlerPathFeature
@{
    ViewBag.Title = "错误页";
    Layout = null;
}
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>采供协同平台-@ViewBag.Title</title>
    <link rel="stylesheet" href="~/plugins/fontawesome-free/css/all.min.css">
    <link href="~/dist/css/adminlte.min.css" rel="stylesheet" />
    <link href="~/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
    <style>
        .card {
            margin-top: 8px;
        }
    </style>
</head>
<body>
    <section class="content">
        <div class="container-fluid col-8">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title text-danger"> @Model.Error.Message</h3>
                    <div class="card-tools">
                        <button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
                            <a asp-action="Login" asp-controller="Account">
                                <i class="fas fa-times"></i>
                            </a>
                        </button>
                    </div>
                </div>
                <div class="card-body">
                    @*<p>@Model.Error.StackTrace</p>
                    <p>@Model.Error.InnerException</p>*@
                    <dl class="row">
                        <dt class="col-sm-2">异常路径：</dt>
                        <dd class="col-sm-10">@Model.Path</dd>
                        <dt class="col-sm-2">异常信息：</dt>
                        <dd class="col-sm-10">@Model.Error.Message</dd>
                        <dt class="col-sm-2">异常堆栈跟踪：</dt>
                        <dd class="col-sm-10">@Model.Error.StackTrace</dd>
                        @if (Model.Error.InnerException != null)
                        {
                            <dt class="col-sm-2">异常详细信息</dt>
                            <dd class="col-sm-10">@Model.Error.InnerException</dd>
                        }
                    </dl>
                </div>

                <div class="card-footer">
                    <a asp-action="Login" asp-controller="Account" class="btn btn-primary">退出</a>
                </div>
            </div>
        </div>
    </section>
</body>
</html>
